package com.apartment.own.domain.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import org.apache.logging.log4j.spi.StandardLevel;

import javax.persistence.criteria.CriteriaBuilder;
import java.io.Serializable;

public enum EmergencyDegreeEnum implements IEnum {

    ALL(0, "不选择", 1),
    /**
     *
     */
    COMMON(1, "普通", 0),
    /**
     *
     */
    URGENCY(2, "紧急", 0),

    NONURGENT(3, "非紧急", 0);


    private Integer id;
    private String name;
    private Integer select;

    EmergencyDegreeEnum(Integer id, String name, Integer select) {
        this.id = id;
        this.name = name;
        this.select = select;
    }


    public Integer getSelect() {
        return select;
    }

    public void setSelect(Integer select) {
        this.select = select;
    }

    @Override
    public Serializable getValue() {
        return this.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
